<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <title>台管理系统</title>
    <link rel="stylesheet" href="__STATIC__plug/layui/css/layui.css">
    <style type="text/css">
    	/*.warpper { 
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            -webkit-overflow-scrolling: touch;
            overflow: auto;
        }
        .warpper > iframe {
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
        }*/
        .layadmin-tabsbody-item{
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            -webkit-overflow-scrolling: touch;
            overflow: auto;
        }
        .layadmin-iframe {
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
        }
    </style>
</head>

<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo">后台管理系统</div>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <b>{$adminInfo.username}</b>
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" class="editinfo">修改信息</a></dd>
                        <dd><a href="javascript:;" class="editpwd">修改密码</a></dd>
                        <dd><a href="{:url('index/logout')}">退了</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree">
                    <li class="layui-nav-item layui-this"><a href="{:url('index/welcome')}" target='main'>后台首页</a></li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">权限管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="{:url('auth/index')}" target='main'>权限列表</a></dd>
                            <dd><a href="{:url('auth_group/index')}" target='main'>权限组列表</a></dd>
                            <dd><a href="{:url('administrator/index')}" target='main'>管理员列表</a></dd>
                            <dd><a href="{:url('admin_log/index')}" target='main'>管理员日志</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">系统管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="{:url('system_manage/site')}" target='main'>基本设置</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
        <div class="layui-body" style="overflow: hidden;">
            <div class="layadmin-tabsbody-item">
                <!-- 内容主体区域 -->
                <iframe src="{:url('index/welcome')}" class="layadmin-iframe" id="main" name="main" frameborder="0"></iframe>
            </div>
        </div>
        <div class="layui-footer">
            CPPYRIGHT @ <a href="http://www.birongsen.com" target="blank_">小木鱼博客</a> 2018-10-23
        </div>
    </div>
    <script type="text/javascript" src="__STATIC__plug/layui/layui.js"></script>
    <script>
    layui.use(['element', 'jquery', 'layer'], function() {
        var element = layui.element,
            layer = layui.layer,
            $ = layui.jquery;
        $('.editpwd').on('click',function(){
            layer.open({
                type: 2,
                title: '修改密码',
                area: ['500px', '200px'],
                content: "{:url('administrator/editPwd')}?id="+{$adminInfo.id}
            });
        })
        $('.editinfo').on('click',function(){
            layer.open({
                type: 2,
                title: '编辑',
                area: ['500px', '350px'],
                content: "{:url('administrator/edit')}?id="+{$adminInfo.id}
            });
        })

        $('.theme a').on('click',function(){
            $('#theme').attr( 'href' , $(this).data('href') )
        })
    });

    </script>
</body>

</html>